package com.iring.service.common;

import java.util.Map;

import com.iring.domain.pay.check.PayCheck;
import com.iring.domain.pay.check.PaypalCheck;
import com.iring.domain.pay.res.AliPayRes;
import com.iring.domain.pay.res.PaypalRes;
import com.iring.vo.pay.PayBackVO;
import com.iring.vo.pay.PayVO;


/**
 * @author wanggan
 */
public interface PayReqService {

    /**
     * 添加paypal的订单
     *
     * @param payVO
     *          创建订单的参数
     * @param username
     *          用户名
     * @return  创建的结果
     */
    PaypalRes addPaypalOrder(PayVO payVO, String username);

    AliPayRes addAlipayOrder(String orderid, String username);

    PayBackVO addAlipay(PayVO payVO, String username);

    PayCheck checkAlipay(Map<String, String> paramsMap);

    PaypalCheck checkPaypal(PaypalCheck paypalCheck);


    Boolean cancelOrder(String orderid, String username);

    PayBackVO repayPaypalOrder(String orderid, String username);

    AliPayRes repayAlipayOrder(String orderid, String username);
}
